package com.intretech.umsin.gateway.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @version V1.0
 * @ClassName: CustomGatewayProperties
 * @Description: 功能描述 自定义gateway参数配置
 * @author: 李启联
 * @date: 2022-8-18 9:53
 * @Copyright: Copyright (c) 2022
 */

@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "spring.cloud.gateway")
public class CustomGatewayProperties {

    /**
     * 请求日志
     */
    private Boolean requestLog;

    public Boolean getRequestLog() {
        return requestLog;
    }

    public void setRequestLog(Boolean requestLog) {
        this.requestLog = requestLog;
    }

    public CustomGatewayProperties() {
    }

    @Override
    public String toString() {
        return "CustomGatewayProperties{" +
                "requestLog=" + requestLog +
                '}';
    }
}